import request from '@/utils/request'

// 获取科室列表
export function getDeptList(data) {
    return request({
        url: '/cpFollowUp/getDeptList',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}

// 获取科室人员
export function getDeptUserList(data) {
    return request({
        url: '/cpFollowUp/getDeptUserList',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}

// 获取随访列表
export function getCpFollowUpPatientList(data) {
    return request({
        url: '/cpFollowUp/getCpFollowUpPatientList',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}

// 获取随访详情数据
export function getCpFollowUpTasks(data) {
    return request({
        url: '/cpFollowUp/getCpFollowUpTasks',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 保存随访详情数据
export function saveCpFollowUpTask(data) {
    return request({
        url: '/cpFollowUp/saveCpFollowUpTask',
        method: 'POST',
        data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 上报随访详情数据
export function uploadCpFollowUpTask(data) {
    return request({
        url: '/cpFollowUp/uploadCpFollowUpTask',
        method: 'POST',
        data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}

// 获取胸痛随访默认设置信息
export function showCpFollowUpSets(data) {
    return request({
        url: '/cpFollowUp/showCpFollowUpSets',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 获取胸痛随访统计信息
export function getCpFollowUpStatisticData(data) {
    return request({
        url: '/cpFollowUp/getCpFollowUpStatisticData',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 保存单个默认设置信息
export function saveCpFollowUpSet(data) {
    return request({
        url: '/cpFollowUp/saveCpFollowUpSet',
        method: 'POST',
        data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 保存多个默认设置信息
export function saveCpFollowUpSets(data) {
    return request({
        url: '/cpFollowUp/saveCpFollowUpSets',
        method: 'POST',
        data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}

// 取消随访
export function cancelCpFollowt(data) {
    return request({
        url: `/cpFollowUp/cancelCpFollowUp?dispatchId=${data}`,
        method: 'POST',
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 获取短信模板
export function showCpFollowUpSmsTemplate(data) {
    return request({
        url: '/cpFollowUp/showCpFollowUpSmsTemplate',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}

// 保存短信模板
export function saveCpFollowUpSmsTemplate(data) {
    return request({
        url: '/cpFollowUp/saveCpFollowUpSmsTemplate',
        method: 'POST',
        data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 获取胸痛随访信息列表
export function getCpFollowUpTaskList(data) {
    return request({
        url: '/cpFollowUp/getCpFollowUpTaskList',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}



// 批量指派随访科室医生
export function BatchAssignment(data) {
    return request({
        url: '/cpFollowUp/batchAssignDeptDoctor',
        method: 'POST',
        data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 新增1年后随访
export function addCpFollowUpAfterYear(data) {
    return request({
        url: '/cpFollowUp/addCpFollowUpAfterYear',
        method: 'POST',
        data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}



// 取得胸痛质控--官方指标--认证指标详情接口
export function getCpcQuotaOverall(data) {
    return request({
        url: '/statistic/getCpcQuotaOverall',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}




// 取得胸痛指标--官方指标--统计明细接口
export function getCpcQuotaPatientList(data) {
    return request({
        url: '/statistic/getCpcQuotaPatientList',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}

// 取得胸痛质控--官方指标--统计明细接口
export function getCpcQcPatientList(data) {
    return request({
        url: '/statistic/getCpcQcPatientList',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 取得胸痛质控--官方指标--指标详情接口
export function getCpcQcOverall(data) {
    return request({
        url: '/statistic/getCpcQcOverall',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 取得卒中质控--官方指标--指标详情接口
export function getSdcQuotaOverall(data) {
    return request({
        url: '/statisticStroke/getSdcQuotaOverall',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}


// 取得卒中质控--官方指标--统计明细接口
export function getSdcQuotaPatientList(data) {
    return request({
        url: '/statisticStroke/getSdcQuotaPatientList',
        method: 'get',
        params: data,
        baseURL: process.env.VUE_APP_BASE_API_FOLLOWUP
    })
}



